/*
** my_strcmp.c for lib in /home/boulah_m/myprintf-2016-boulah_m
** 
** Made by moustafa boulahia
** Login   <boulah_m@epitech.net>
** 
** Started on  Tue Nov 22 10:29:25 2011 moustafa boulahia
** Last update Mon Jan 23 08:00:40 2012 moustafa boulahia
*/
#include "my.h"

int	my_strcmp(char *str, char *a_chek)
{
  int	i;
  if (my_strlen(str) == my_strlen(a_chek))
    {
      i = 0;
      while (str[i] == a_chek[i] && a_chek[i] != '\0')
	{
	  i = i + 1;
        }
      if (i < my_strlen(a_chek) - 1)
	{
	  return (1);
	}
      else
	{
	  return (0);
	}
    }
  else
    {
      return (1);
    }
}
